import Taro, { Component,Config } from "@tarojs/taro";
import { View, ScrollView, Image, Text } from "@tarojs/components";

import './index.less'
import './page2.less'
import icon_31 from '../../assets/img/icon_31.png'
import icon_93 from '../../assets/img/icon_93.png'
import icon_94 from '../../assets/img/icon_94.png'
import icon_95 from '../../assets/img/icon_95.png'
import {getRuntime} from "../../utils/common";



// 工商服务中心-首页
class Business extends Component{
  constructor(){
    super()
  }

  componentWillMount(): void {
    Taro.setNavigationBarTitle({title: '公司报税、年检、注销'})
  }

  handelRouter(url: string = '/pages/index/index'): void {
    getRuntime().navigateTo(url)
  }

  render() {
    return(
     <View className='business-index'>
       <View className='page2-theme'>
         <View className='theme' onClick={this.handelRouter.bind(this,'/pages/business/page2_declare')}>
           <Image src={icon_93} className={'theme-img'}/>
            <View className='list-title'>公司报税</View>
            <View className='list-desc'>为公司提供代报税服务</View>
            <View className='btn1 btn-banli'>立即办理 ></View>
         </View>
         <View className='theme' onClick={this.handelRouter.bind(this, '/pages/business/page2_inspection')}>
           <Image src={icon_94} className={'theme-img'}/>
           <View className='list-title'>公司年检</View>
           <View className='list-desc'>为公司提供代年检服务</View>
           <View className='btn2 btn-banli'>立即办理 ></View>
         </View>
         <View className='theme' onClick={this.handelRouter.bind(this, '/pages/business/page2_cancel')}>
           <Image src={icon_95} className={'theme-img'}/>
           <View className='list-title'>公司注销</View>
           <View className='list-desc'>为公司提供代注销服务</View>
           <View className='btn3 btn-banli'>立即办理 ></View>
         </View>
       </View>
     </View>
    )
  }
}

export default Business
